<%
/*
 *   Copyright 2013 Leonardo Pimentel, nome2 SOBRENOME2
 *   <lpfw82@gmail.com><email2.com>
 *
 *   This file is part of XFD Validator.
 *
 *   XFD Validator is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU Lesser General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   XFD Validator is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU Lesser General Public License for more details.
 *
 *   You should have received a copy of the GNU Lesser General Public License,
 *   along with XFD Validator.  If not, see <http://www.gnu.org/licenses/>.
*/
%>

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--Force IE6 into quirks mode with this comment tag-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>XML Validation Constraint</title>
<link rel=stylesheet type=text/css href="./css/main.css" />
<script type="text/javascript"
	src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" 
	src="js/validate.js"></script>
</head>
<body>
	<%@ include file="Left_frame.jsp" %>	
	<div id="maincontent">
		<%@ include file="Top_frame.jsp" %>
		<br />
		<div>
			<form action="Show_results.jsp" id="validar" name="validar"
				method="post" enctype="multipart/form-data">
				<h4>
					Choose a XML file: <input id="file" type="file" name="file"
						style="margin-left: 8px; padding-left: 2px" />
				</h4>
				<div id="div1">
					<h4>
						Enter XFD name: <input name="xfd_name" type="text" size="80"
							style="margin-left: 24px" value="XFD1" />
					</h4>
					<h4>
						Enter Context Path: <input name="context_path" type="text"
							size="80" style="margin-left: 7px" value="bd / projet" />
					</h4>
					<h4>
						Enter Left Path: <input name="left_path" type="text" size="80"
							style="margin-left: 33px"
							value="fournisseur / fnom | fournisseur / composant / cnom" />
					</h4>
					<h4>
						Enter type of equality associated with dependence (v or n with
						commas ex.'v,n,v'): <br /> <input name="left_equality_type"
							type="text" size="104" style="margin-left: 0px" value="v,v" /> <br />
					</h4>
					<h4>
						Enter Right Path: <br /> <input name="right_path" type="text"
							size="104" style="margin-left: 0px"
							value="fournisseur / composant / prix" /> <br />
					</h4>
					<h4>
						Enter type of equality associated with dependence (v or n): <br />
						<input name="right_equality_type" type="text" size="104"
							style="margin-left: 0px" value="v" /> <br />
					</h4>
				</div>
				<div id="div2"></div>
				<input type="submit" value="Validate!" style="margin-left: 30px"
					onclick="this.form.target='_blank'; return show_results()" /> <input type="button"
					value="Add XFD" onClick="add()">
			</form>
		</div>
	</div>
</body>
</html>
